package com.jiedeng.dao;

import com.jiedeng.model.FileRecord;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * @author 覃远龙
 * @ClassName: IFileRecordRepository
 * @Description:
 * @date 2017/8/17 15:16
 */
public interface IFileRecordRepository extends JpaRepository<FileRecord, String> {

    public List<FileRecord> findByCheckId(String checkId);

    public List<FileRecord> findByCheckIdAndCheckClose(String checkId, boolean checkOrClose);
    public List<FileRecord> findByCheckIdAndCheckCloseOrderByNumAsc(String checkId, boolean checkOrClose);
    public List<FileRecord> findByCheckIdAndCheckCloseOrderByRTimeDesc(String checkId, boolean checkOrClose);
    FileRecord findByCheckIdAndCheckCloseAndNum(String checkId, boolean checkOrClose,int num);
}
